--
-- Author: shunguo.chen
-- Date: 2018-07-12 16:31:55
--
-- TheatreNpcView
--

local fileName = string.getModeName(...)
local ClassRef = class(fileName, app.mvc.ViewBase)

ClassRef.VIEW_ROOT_RES = Res.ChessNpcScene

function ClassRef:init()
	self:setBackGroundColorOpacity(0)
	display.setCascadeOpacityEnabled(self._root, true)
end

function ClassRef:refresh(msg, time, cb)
	self._ui.text:setString(msg)
	self._ui.text:performWithDelay(function()
			self:hide(cb)
		end, time)
end
	

return ClassRef
